<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<%@include file="include/header.jsp" %>
</head>
<body>
<%@include file="include/menu.jsp" %>
<%		
		Persona vo = (Persona)session.getAttribute("user");
		
		if (vo== null){
			RequestDispatcher rd = request.getRequestDispatcher("error.jsp");
			rd.forward(request, response);
			return;
		}
	  %>
</head>
<body>
<div class="container">
		<div class="hero-unit">
	    	<h2 align="center"><strong>Consulta de Morosos</strong></h2><br>
	    </div>
	<form method="post" action="MorosoBuscarServlet">
		<div class="row">
		<div class="col-md-2  col-md-offset-3">
			<button type="submit" class="btn btn-primary" name="ultimoMes"/>El ultimo mes</button>			
		</div>	
		<div class="col-md-2">	
			<button type="submit" class="btn btn-primary" name="ultimosTresMeses"/>Ultimos tres meses</button>
		</div>	
		<div class="col-md-2">	
			<button type="submit" class="btn btn-primary" name="todos"/>Todos los morosos</button>	
		</div>
		
		</div>
	</form>	
	</div>
</body>
</html>